#include "Graduate.h"

using namespace std;

Graduate::Graduate(Student _student, string _subject, Teacher _adviser): People(_student), Student(_student), adviser(_adviser)
{
	subject = _subject;
}

void Graduate::show()
{
	printf("编号: %d\n", account);
	printf("姓名: %s\n", name.c_str());
	printf("性别: %s\n", sex.c_str());
	printf("身份证号: %s\n", id.c_str());
	printf("出生日期: %04d-%02d-%02d\n", date.year, date.month, date.day);
	printf("班号: %s\n", classNO.c_str());
	printf("专业: %s\n", subject.c_str());
	printf("导师: **********\n");
	adviser.show();
}
